import {hi} from "./m1";

function sum(a: number, b: number) {
    return a + b;
}

const obj = {name: '孙悟空', age: 33};
console.log(obj);
obj.age = 18;
console.log(obj);

console.log(sum(123, 456));
console.log(hi);

// 老版本浏览器以IE11为例，是没有Promise的，babel也处理不了，必须使用corejs才能处理
console.log(Promise);

let fn = (a: number, b: number) => a + b;
fn(123, 456);
